class Login:

	def __init__(self, driver):
		self.driver = driver

	def login(self):
		self.driver.find_element_by_name("name").send_keys("selenium_demo")
		self.driver.find_element_by_name("password").send_keys("selenium_demo")
		self.driver.find_element_by_class_name("login").click()

	def logout(self):
		self.driver.find_element_by_class_name("avata").click()
		self.driver.find_element_by_class_name("user-logout").click()
